<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>我的订单</title>
    <link href="../asserts/plugins/bootstrap/css/bootstrap.css" rel="stylesheet">
    <script src="../asserts/plugins/jquery-3.6.0.min.js"></script>
    <script src="../asserts/plugins/bootstrap/js/bootstrap.js"></script>

    <script>
        $(function () {
            // 展示我的订单（我买的）
            $.ajax({
                url:"/KunKunMarket/OrderController",
                type:"get",
                dataType:"json",
                data:{
                    type: 'getOrder_0'
                },
                success:function (respBean) {
                    console.log("我买的：");
                    if (respBean.status == 500){
                        console.log(respBean.msg);
                        return;
                    }
                    console.log(respBean.data);
                }
            })
            //我的订单（我卖出的）
            $.ajax({
                url:"/KunKunMarket/OrderController",
                type:"get",
                dataType:"json",
                data:{
                    type: 'getOrder_1'
                },
                success:function (respBean) {
                    console.log("我卖出的：");
                    if (respBean.status == 500){
                        console.log(respBean.msg);
                        return;
                    }
                    console.log(respBean.data);
                }
            })
        })
    </script>
</head>
<body>
    <h1>我的订单</h1>
</body>
</html>